package cv.cvs.dao;

import cv.cvs.pojo.Card;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CardMapper {
    //查询全部
    public List<Card> getCardList ();

    //根据持卡人身份证号查询
    Card getCardIdNumber(@Param("idNumber") String idNumber);

    //添加门禁卡
    int addCard(Card card);

    //修改门禁卡状态
    int modify(@Param("status") Integer status, @Param("id") Integer id);

    public int deleteCard(@Param("id") Integer id);


}
